<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/28
 * Time: 13:10
 */

namespace App;


use Illuminate\Database\Eloquent\Model;

class WechatArticle extends Model
{
    protected $table='wechat_article';
    // 开启自动时间戳
    public $timestamps = true;
    // 日期都存储为时间戳
    protected $dateFormat = 'U';

    public function partner()
    {
        return $this->belongsTo('App\Partner', 'weixin_name', 'weixin_name');
    }
}